
import Layout from '@/layout'

const couponRouter = {
  path: '/coupon',
  component: Layout,
  redirect: '/coupon/list',
  name: 'Coupon',
  meta: {
    title: '优惠券',
    icon: 'clipboard'
  },
  children: [
    {
      path: 'list/save/:id?',
      name: 'couponAdd',
      meta: {
        title: '优惠劵添加',
        noCache: true,
        activeMenu: `/coupon/list`
      },
      hidden: true,
      component: () => import('@/views/store/coupon/list/creatCoupon')
    },
    {
      path: 'list',
      component: () => import('@/views/store/coupon/list/index'),
      name: 'List',
      meta: { title: '优惠券列表', icon: '' }
    },
    {
      path: 'record',
      component: () => import('@/views/store/coupon/record/index'),
      name: 'Record',
      meta: { title: '领取记录', icon: '' }
    }
  ]
}

export default couponRouter
